package br.edu.ufcg.msnlab2.grupo05.Grafico;

import java.awt.Dimension;
import java.util.ArrayList;

import javax.swing.JPanel;

import org.jfree.ui.ApplicationFrame;
import org.jfree.ui.RefineryUtilities;

import br.edu.ufcg.msnlab2.misc.Point;

public class ImprimeSemSplineCubic extends ApplicationFrame {

	private static final long serialVersionUID = 1L;

	public ImprimeSemSplineCubic(ArrayList<Point> pontos) {
		
		super("Sem Spline Cubic");

		Graph graph = new Graph(pontos);

		JPanel localJPanel = graph.createPanel();
		localJPanel.setPreferredSize(new Dimension(500, 270));
		setContentPane(localJPanel);
		pack();
		RefineryUtilities.centerFrameOnScreen(this);
		setVisible(true);
	}
}
